package messages;

import java.util.List;
import java.util.StringTokenizer;

public abstract class Message {
    
    protected String messageType;

    public Message(String type) {
        super();
        this.messageType = type;
    }
    
    public abstract void parseMessage(List<StringTokenizer> tokens);
    
    public abstract String writeMessage();
    
    public String getUserName() {return null;}
    public int getClientPort() {return 0;}
    public List<String> getClientList() {return null;}
    public String getDestinationAddress() { return null;}
    public String getDestinationPort() {return null;}
   
    // retorna type
    public String getType() {
        return messageType;
    }

    //seta type
    public void setType(String type) {
        this.messageType = type;
    }
        
    
}
